package com.tangyuan.common.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL_LOGIN(201, "登录失败"),
    SERVICE_ERROR(202, "服务异常"),
    FAIL(203, "失败"),
    DATA_ERROR(204, "数据异常"),
    ILLEGAL_REQUEST(205, "非法请求"),
    REPEAT_SUBMIT(206, "重复提交"),
    REQUEST_DEBOUNCE(207, "请求过于频繁，请稍候再试！"),
    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
    ARGUMENT_VALID_ERROR(210, "参数校验异常"),
    OPEN_ID_NO_EXIST(211, "open_id不存在"),
    XXL_JOB_ERROR(212, "调度操作失败"),
    OBJECT_EXIST(213, "科目已存在"),
    ACCOUNT_ERROR(214, "账号不正确"),
    PASSWORD_ERROR(215, "密码不正确"),
    LOGIN_ACCOUNT_ERROR(216, "账号不正确"),
    PHONE_CODE_ERROR(217, "手机验证码不正确"),
    NODE_ERROR(218, "该节点下有子节点，不可以删除"),
    ACCOUNT_STOP(219, "账号已停用"),
    VOD_FILE_ID_ERROR(220, "声音媒体id不正确"),
    ACCOUNT_LOCK_ERROR(221, "账户余额锁定失败"),
    ANSWER_IS_NOT_NULL(222, "错题没删完"),
    ACCOUNT_LESS(223, "账户余额不足"),
    ACCOUNT_UNLOCK_ERROR(224, "账户余额解锁失败"),
    ACCOUNT_SUB_ERROR(225, "账户余额扣减失败"),
    ACCOUNT_LOCK_REPEAT(226, "重复锁定"),
    ACCOUNT_LOCK_RESULT_NULL(227, "锁定账号结果对象为空"),
    ORDER_SUBMIT_REPEAT(228, "超时或重复提交订单"),
    NO_BUY_NOT_SEE(230, "未购买不能观看"),
    EXIST_NO_EXPIRE_LIVE(231, "当前存在未过期直播"),
    OTHER_DEVICE_ONLINE(240, "帐号在其他设备登录"),
    INCORRECT_PAYMENT_AMOUNT(241, "付款金额不正确"),
    RECEIPT_VERIFY_ERROR(242, "票据校验异常"),
    ORDER_NOT_EXIST(243, "未查询到订单"),
    ORDER_IS_PROCESSED(244, "订单已被处理"),
    REGISTRATION_UNPAID(245, "报名未付款"),
    REFUND_FAILED(246,"退款失败"),
    NO_REFUND_METHOD(247,"无效的退款方式"),
    ACTIVITY_HAS_NOT_STARTED(248,"活动未开始"),
    ACTIVITY_HAS_NO_TICKETS(249,"该活动已无票"),
    QUOTA_CODE_ERROR(250,"超出限购"),
    REPEATED_REGISTRATION(251,"您已报名此活动"),
    HANDLING_USER_BEHAVIOR_ERROR(252,"修改用户行为出错"),
    INCORRECT_PHONE_FORMAT(253,"手机格式不正确"),
    BEYOND_TOP_QUANTITY(254,"超出置顶数量"),
    CREATED_THE_SAME(255,"你已经创建过此年级，请勿重复创建"),
    CHOOSE_NOT_EXISTENT(256,"你的选择不存在"),
    BAIDUOCR_ERROR_CODE(257,"图片未能正确解析，请重新上传图片"),
    INPUT_IS_NULL(258,"请先输入要搜索的内容"),
    NO_HEADLINES_PERMISSIONS(259,"普通用户禁止在此类目发布"),

    SIGN_ERROR(300, "签名错误"),
    SIGN_OVERDUE(301, "签名已过期"),
    CODE_OVERTIME(302, "验证码已过期"),
    USER_EXIST(303, "用户已存在"),
    USER_NOT_EXIST(304, "用户不存在"),
    ACTIVE_OVER_TIME(333, "活动时间已结束"),
    YOU_HAVE_VOTED(334, "您已给其他选手投票"),
    MORE_THAN_ONCE(335, "请勿重复投票！"),
    START_TIME_MORE_THAN_END_TIME(336, "活动的开始时间不可以大于结束时间！"),
    ACTIVE_NOT_EXIST(337, "活动不存在！"),
    YOU_HAVE_NO_RIGHT(338, "您无权取消该活动！"),
    YOU_HAVE_CANCEL(339, "您已取消该活动！"),
    ACTIVE_HAS_CONFIRM(340, "活动已经确认！"),
    USER_NOT_PARTICIPATE(341, "该用户没有参加！"),
    ACTIVE_NOT_PASS(342, "活动未审核或审核不通过！"),
    YOU_HAVE_NO_CHANGE(343, "您无权修改！"),
    CURRENT_PHONE_EXIST(344, "当前手机号已被使用！"),
    CURRENT_OPENID_EXIST(345, "当前openId已被使用！"),
    CURRENT_IOS_ID_EXIST(346, "当前iosId已被使用！"),
    PHONE_NUMBER_IS_WRONG_FORMAT(347, "手机号格式错误！"),

    FAIL_MONEY(406, "余额不足！"),
    RECOMMEND_LESS(407, "后台推荐不足！"),
    NOT_VIEW_MOVIE(408, "你还没认真浏览该电影的信息！"),
    COUPON_NOT_EXIST(409,"优惠券不存在!"),
    COUPON_HAS_CLAIMED(410,"该优惠券已被领取!"),
    COUPON_NOT_REQUIREMENTS(411,"当前优惠券不符合要求!"),
    COUPON_HAS_USED(412,"该优惠券已被使用!"),

    PAY_WAY_NOT_SUPPORT(665,"暂不支持该支付方式"),
    PAY_ERROR(666,"支付失败！"),
    NO_SEARCH_DATA(667,"未找到对应数据！"),
    AWAIT_THE_RESULT(668,"正在处理您的请求，请稍候片刻后再试。"),
    NO_LIVE_PERMISSIONS(669,"没有直播权限,请重新登录后重试。"),
    NO_LIVE_VIEW_PERMISSIONS(669,"没有观看直播权限,请重新登录后重试。"),
    LIVE_FINISHED(670,"直播已结束"),
    LIVE_REPEAT_TO_CREATE(671,"已有直播,请勿重复创建"),
    CREATE_LIVE_ERROR(672,"创建直播异常,请稍后重试"),
    GIVE_GIFT_NOT_EXIST(673,"选择的礼物不存在"),
    GIVE_GIFT_FAIL(674,"赠送礼物失败"),
    ANCHOR_CANNOT_GIVE_GIFT(675,"主播不能赠送礼物"),
    LIVE_GROUP_UPPER_LIMIT(676,"管理员最多设置5个人"),
    BY_SHIFT_OUT(677,"您已被主播移出直播间."),

    APPLICATION_AGENT_HAS_BEEN_SUBMITTED(701, "申请代理已提交，请耐心等待！"),

    NO_DATA(999,"暂无数据！"),
    ;

    private final Integer code;

    private final String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
